<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
	<html>
	<head>
		<title><?php echo ($site_seo_title); ?> <?php echo ($site_name); ?></title>
		<meta name="keywords" content="<?php echo ($site_seo_keywords); ?>" />
		<meta name="description" content="<?php echo ($site_seo_description); ?>">
		
	<link rel="icon" href="/themes/simplebootx/Public/assets/images/favicon.ico" type="image/x-icon">
	<meta name="keywords" content="-致医商城"> <meta name="description" content="-致医商城"> <title>致医商城-北京致医健康信息技术有限公司</title>
	<link href="/themes/simplebootx/Public/assets/css/header.css" type="text/css" rel="stylesheet">
	<link href="/themes/simplebootx/Public/assets/css/index_new.css" type="text/css" rel="stylesheet">
	<link href="/themes/simplebootx/Public/assets/css/register.css" type="text/css" rel="stylesheet">
	<link href="/themes/simplebootx/Public/assets/css/base.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/jquery-1.6.1.min.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/jquery.cycle.all.min.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/imallSlidelf.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/imall-countdown.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/common.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/commonW.js"></script>
	<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/index.js?2"></script>
	<style type="text/css">
		/*添加样色*/
		.index .index_m2 .m2R .r_top .b-layer .shop{width: 133px; height: 31px; display: block; text-align: center;float:left;background:none repeat scroll 0% 0% rgb(0, 162, 138);color:#fff}
		.index .index_m2 .m2R .r_top .b-layer .quality{width: 133px;  height: 31px; display: block; text-align: center;float:left;}
	</style>
	<script type="text/javascript">
		var pageData={
			nowTime:"2017/05/18 09:55:38"
		};
		$(function(){
			$(".itemHover").css('opacity','0');
			$(".itemHover").hover(function(){
				var thisHover=$(this);

				$(this).parent().parent().find(".itemHover").not(this).stop(true,false).animate({"opacity":"0.3"},"slow",function(){
					thisHover.css("opacity","0")
				});
			},function(){
				$(".itemHover").stop(true,false).animate({"opacity":"0"},"slow");
			})

			//商城公告，质量公告 切换
			$(".shop").hover(function(){
				$(this).css("cursor", "pointer");
			});
			$(".quality").hover(function(){
				$(this).css("cursor", "pointer");
			});
			$(".shop").click(function () {
//                $(this).css("border","1px solid rgb(204, 204, 204)");
				$(this).css("background","none repeat scroll 0% 0% rgb(0, 162, 138)");
				$(this).css("color","#fff");
				$(".quality").css("background","none repeat scroll 0% 0% #fff");
				$(".quality").css("color"," rgb(51, 51, 51)");
				$(".quality").css("family","微软雅黑");
				$("#shop").show();
				$("#quality").hide();
			});
			$(".quality").click(function () {
//                $(this).css("border","1px solid rgb(204, 204, 204)");
				$(this).css("background","none repeat scroll 0% 0% rgb(0, 162, 138)");
				$(this).css("color","#fff");
				$(".shop").css("background","none repeat scroll 0% 0% #fff");
				$(".shop").css("color"," rgb(51, 51, 51)");
				$(".shop").css("family","微软雅黑");
				$("#quality").show();
				$("#shop").hide();
			});

		})
	</script>

	</head>
<body class="body-white">
<style>
	.pic a img{
		width: 160px;
	}
</style>

<script type="text/javascript">
	var goToUrl = function(url){
		setTimeout(function(){window.location.href=url},1)
	};
	var Top_Path = {webRoot:"",topParam:"index"};

</script>
<link rel="icon" href="http://www.zhiyimall.com/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://www.zhiyimall.com/favicon.ico" type="image/x-icon">
<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/jquery.bgiframe.min.js"></script>
<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/top.js"></script>
<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/addFavorite.js"></script>
<!--header-->
<div class="header">
	<div class="topBg">
		<div class="h-top">
			<div class="welcome">

				您好，<a class="cur user-nicename" href="<?php echo U('product/member/index');?>"></a>欢迎来到致医商城！
                <span class="logout" style="display: none;">[<a href="<?php echo U('user/index/logout');?>" title="退出">退出</a>]</span>
				<span class="user_nologin" style="display: none;">
				[<a class="cur" href="<?php echo leuu('user/login/index');?>" title="登录">登录</a>]
				[<a href="<?php echo leuu('user/register/index');?>" title="新用户注册">注册</a>]
				</span>
			</div>
			<ul class="topR">
				<p style="margin: 3px"> <?php echo ($site_setting["site_top"]); ?></p>
				<div class="clear"></div>
			</ul>
			<div class="clear"></div>
		</div>
	</div>
	<div class="h-btm">
		<div class="logo frameEdit" frameinfo="logo|350X115">
			<a href="/" title="致医商城" target="_blank"><img src="/themes/simplebootx/Public/assets/images/e5ec042d-6f3d-4ec0-996b-f461fdef09a7.png" width="350" height="115" alt="致医商城" title=" " border="0"></a></div>
		<div class="search-box">
			<form id="searchForm" action="/" method="get">
				<div class="form">
                    <input type="hidden" name="g" value="product"/>
                    <input type="hidden" name="m" value="list"/>
                    <input type="hidden" name="a" value="index"/>
					<input class="put" type="text" id="searchFields" name="keyword" placeholder="请输入关键字：药品名称">
					<div class="search-btn"><a href="$('#searchForm').submit();">搜索</a></div>
					<div class="clear"></div>
				</div>
			</form>
			<ul class="hotFont">
				<p>热门搜索：</p>
				<li>
					<a href="<?php echo U('product/list/index',array('keyword'=>'碳酸钙'));?>" title="碳酸钙" class="cur">碳酸钙</a>
					<a href="<?php echo U('product/list/index',array('keyword'=>'感冒颗粒'));?>" title="感冒颗粒">感冒颗粒</a>
					<a href="<?php echo U('product/list/index',array('keyword'=>'五子衍宗丸'));?>" title="五子衍宗丸">五子衍宗丸</a>
					<a href="<?php echo U('product/list/index',array('keyword'=>'抗病毒口服液'));?>" title="抗病毒口服液">抗病毒口服液</a>
					<a href="<?php echo U('product/list/index');?>" title=""></a>
				</li>
				<div class="clear"></div>
			</ul>
		</div>
		<div class="btm-r frameEdit" frameinfo="top_tel_adv|300X80">
			<div class="pic">
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>

<!--menu-->
<div class="menuBg">
	<div class="menu">
		<div class="menu-l l_btn">
			<div class="all"><em></em>全部药品分类</div>
			<div class="popup me_Layer" style="<?php if($open_menu == true){ ?>display:block;<?php }else{ ?>display:none;<?php } ?>">
				<input type="hidden" id="isIndex" value="<?php if($open_menu==true): ?>Y<?php endif; ?>">
                <?php if(is_array($cat_list)): foreach($cat_list as $cat_index=>$cat_item): ?><ul class="itemBox">
                        <li class="item <?php if($cat_index%2!=0): ?>item2<?php endif; ?>">
                            <div class="icon">
                                <img src="/themes/simplebootx/Public/assets/images/icon<?php echo ($cat_index+2) ?>.png">
                            </div>
                            <!--链接-->
                            <div class="title"><a href="<?php echo U('Product/list/index',array('tid'=>$cat_item['id']));?>" title="感冒呼吸"><?php echo ($cat_item["title"]); ?></a></div>
                        </li>
                    </ul><?php endforeach; endif; ?>

			</div>
		</div>
		<ul class="menu-m frameEdit" frameinfo="nav_link">
			<li><a <?php if(I('get.g') == 2): ?>class="cur"<?php endif; ?> href="/">首页</a><em></em></li>
			<a <?php if(I('get.id') == 2): ?>class="cur"<?php endif; ?> href="<?php echo U('Product/Article/detail1',array('id'=>2));?>" title="关于我们">关于我们</a>
			<a <?php if(I('get.id') == 3): ?>class="cur"<?php endif; ?> href="<?php echo U('Product/Article/detail1',array('id'=>3));?>" title="联系我们">联系我们</a>
			<a <?php if(I('get.a') == 'information'): ?>class="cur"<?php endif; ?>  href="<?php echo U('Product/Article/information');?>">资讯频道</a>
			<a <?php if(I('get.a') == 'summer'): ?>class="cur"<?php endif; ?>  href="<?php echo U('Product/Article/summer');?>">夏季常用药</a>
			<a <?php if(I('get.a') == 'sheet'): ?>class="cur"<?php endif; ?>  href="<?php echo U('Product/Article/sheet');?>">药品数据表【收费】</a>
		</ul>
		<div class="clear"></div>
	</div>
</div>
<div class="index">
	<div class="index_m1">
		<div class="m1L"></div>
		<div class="m1M">
			<div class="bannerBox frameEdit" frameinfo="roteAdv|720X270" style="width: 720px; height: 270px;">
				<div class="banner" id="roteAdv" advlength="<?php echo count($pic_list['1']); ?>" style="height: 270px; width: 720px; position: relative; overflow: hidden;">
					<?php if(is_array($pic_list['1'])): foreach($pic_list['1'] as $pkey=>$pitem): ?><a id="roteAdv<?php echo $pkey+1; ?>" href="<?php echo ($pitem["url"]); ?>" title="致医商城" style="position: absolute; top: 0px; left: -720px; display: none; z-index: 2; opacity: 1; width: 720px; height: 270px;"><img src="<?php echo sp_get_image_preview_url($pitem['picture']);?>" alt="" id="adv1" title="致医商城" width="720px" height="270px"></a><?php endforeach; endif; ?>
				</div>
                <div class="b_layer" id="nav">

                </div>

			</div>
			<div class="m_btm frameEdit" frameinfo="main_right_x_adv2|240X120" style="width: 720px; height: 120px;display: inline-flex;">
                <?php if(is_array($pic_list['2'])): foreach($pic_list['2'] as $key=>$pitem): ?><a href="<?php echo ($pitem["url"]); ?>" title="广告" target="_blank">
                        <img src="<?php echo sp_get_image_preview_url($pitem['picture']);?>" width="240" height="120" alt="广告2" title=" " border="0">
                    </a><?php endforeach; endif; ?>
            </div>
		</div>
		<div class="m1R frameEdit" frameinfo="main_right_adv2|290X195" style="width: 290px; height: 390px;">
            <?php if(is_array($pic_list['3'])): foreach($pic_list['3'] as $key=>$pitem): ?><a href="<?php echo ($pitem["url"]); ?>" title="广告4" target="_blank">
                <img src="<?php echo sp_get_image_preview_url($pitem['picture']);?>" width="290" height="195" alt="广告4" title=" " border="0">
            </a><?php endforeach; endif; ?>
        </div>
		<div class="clear"></div>
	</div>
	<!--楼层1-->
	<div class="index_m3" style="height: 490px">
		<div class="m3L" style="height: 490px;width: 1200px">
			<div class="left" style="height: 490px">
				<div class="frameEdit" frameinfo="main_F2_banner|190X490" style="height: 490px;width: 190px">
					<a href="<?php echo $pic_list['4'][0]['url'] ?>" title="广告6" target="_blank">
                        <img src="<?php echo sp_get_image_preview_url($pic_list['4'][0]['picture']); ?>" width="190" height="490" alt="广告6" title=" " border="0">
                    </a>
                </div>
			</div>
			<div class="right" style="height: 490px;width: 1010px">
				<div class="r_layer frameEdit" frameinfo="main_F1_nav" style="text-align: left;width: 1010px">
					<a title="热门推荐" target="_blank" href="#" style="font-weight: bold;  font-size: 20px; color: #3c3c3c;">热门推荐</a>
				</div>
				<div class="r_box frameEdit" frameinfo="main_F1_recommend_prd" style="height: 455px;width: 1010px">
                    <?php if(is_array($rec_p_list1)): foreach($rec_p_list1 as $key=>$ritem): $picture_arr = explode(",",$ritem['pictures']); $picture = $picture_arr[0]; ?>
					<div class="info" style="height: 225px;width: 250px;">
						<div class="pic" style="height: 160px;width: 160px;">
                            <a href="<?php echo U('product/detail/index',array('id'=>$ritem['id']));?>" title="<?php echo ($ritem['pname']); ?>" target="_blank">
                                <img src="<?php echo sp_get_image_preview_url($picture);?>">
                            </a>
                        </div>
						<div class="title" style=" text-align: center;">
                            <a href="<?php echo U('product/detail/index',array('id'=>$ritem['id']));?>" title="<?php echo ($ritem['pname']); ?>" target="_blank"><?php echo ($ritem['pname']); ?></a>
                        </div>
					</div><?php endforeach; endif; ?>

					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>

	<!--end 楼层1-->
	<div class="index_adv frameEdit" frameinfo="main_F3_banner|1200X80">
		<a href="<?php echo leuu('user/register/index');?>" title="#" target="_blank">
            <img src="/themes/simplebootx/Public/assets/images/1e3713e8-c411-4990-aa27-0b4d1f2a8895.png" width="1200" height="80" alt="#" title=" " border="0">
        </a>
    </div>
	<div class="index_m3" style="height: 490px">
		<div class="m3L" style="height: 490px;width: 1200px">
			<div class="left" style="height: 490px">
				<div class="frameEdit" frameinfo="main_F1_banner|190X490" style="height: 490px;width: 190px">
					<a href="<?php echo $pic_list['5'][0]['url'] ?>" title="藿香祛暑软胶囊" target="_blank">
                        <img src="<?php echo sp_get_image_preview_url($pic_list['5'][0]['picture']); ?>" width="190" height="490" alt="藿香祛暑软胶囊" title=" " border="0">
                    </a>
                </div>
			</div>
			<div class="right" style="height: 490px;width: 1010px">
				<div class="r_layer frameEdit" frameinfo="main_F2_nav" style="text-align: left;width: 1010px">
					<a title="热门推荐"  href="#" style="font-weight: bold;  font-size: 20px; color: #3c3c3c;">热门推荐</a>
				</div>
				<div class="r_box frameEdit" frameinfo="main_F2_recommend_prd" style="height: 455px;width: 1010px">
                    <?php if(is_array($rec_p_list2)): foreach($rec_p_list2 as $key=>$ritem): $picture_arr = explode(",",$ritem['pictures']); $picture = $picture_arr[0]; ?>
                        <div class="info" style="height: 225px;width: 250px;">
                            <div class="pic" style="height: 160px;width: 160px;">
                                <a href="<?php echo U('product/detail/index',array('id'=>$ritem['id']));?>" title="<?php echo ($ritem['pname']); ?>" target="_blank">
                                    <img src="<?php echo sp_get_image_preview_url($picture);?>">
                                </a>
                            </div>
                            <div class="title" style=" text-align: center;">
                                <a href="<?php echo U('product/detail/index',array('id'=>$ritem['id']));?>" title="<?php echo ($ritem['pname']); ?>" target="_blank"><?php echo ($ritem['pname']); ?></a>
                            </div>
                        </div><?php endforeach; endif; ?>
					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>
</div>


<!--页脚-->
<script type="text/javascript" src="/themes/simplebootx/Public/assets/js/scrollTop.js"></script>
<script type="text/javascript">
	var jiathis_config={
		summary:"",
		hideMore:false
	}

	$(document).ready(function(){

		$(window).scroll(function() {
			var topheight=$(".back-top").offset().top;
//            $(".wx-popup").css({ top: topheight + "px" });
//            $(".se-popup").css({ top: topheight+50 + "px" });
		});


		$("#2dbcode").hover(function(){
//            var topheight=$(".back-top").offset().top;
//            $(".wx-popup").css("top",topheight);
			$(".wx-popup").show();
		},function(){
			$(".wx-popup").hide();
		});

		$("#ziaxian").hover(function(){
//            var topheight=$(".back-top").offset().top;
//            $(".se-popup").css({ top: topheight + "px" });
			$(this).find(".se-popup").show();
		},function(){
			$(this).find(".se-popup").hide();
		});
	});
	$(function(){
		$(".simple").scrollTop1();
//        window.onscroll=function(){
//            document.documentElement.scrollTop>0?$("#goTopBtn").css("display",""):$("#goTopBtn").css("display","none");
//        }
	});
</script>
<div class="footer">
	<div class="foot_ba frameEdit" frameinfo="custom1">
		<p>
			<span style="font-size:16px;"><strong>&nbsp;</strong></span></p>
		<p style="text-align: center;">
			&nbsp;</p>
		<p style="text-align: center;">
			<span style="font-size:12px;"><span style="font-family: 微软雅黑;"><?php echo ($site_setting["site_banquan"]); ?></span></span></p>
		<p style="text-align: center;">
			<span style="font-size:12px;"><span style="font-family: 微软雅黑;"><?php echo ($site_setting["site_beian"]); ?></span></span></p>
	</div>
</div>


<script type="text/javascript">
	//全局变量
	var GV = {
		ROOT: "/",
		WEB_ROOT: "/",
		JS_ROOT: "public/js/"
	};

	$(function(){

		$.post("<?php echo U('user/index/is_login');?>",{},function(data){
			if(data.status==1){
				if(data.user.avatar){
//					$("#main-menu-user .headicon").attr("src",data.user.avatar.indexOf("http")==0?data.user.avatar:"<?php echo sp_get_image_url('[AVATAR]','!avatar');?>".replace('[AVATAR]',data.user.avatar));
				}

				$(".user-nicename").text(data.user.user_nicename!=""?data.user.user_nicename:data.user.user_login);
				$(".user-nicename").show();
                $(".logout").show();
				$(".user_nologin").hide();
			}
			if(data.status==0){
				$(".user_nologin").show();
				$(".user-nicename").hide();
			}

			/* $.post("<?php echo U('user/notification/getLastNotifications');?>",{},function(data){
			 $(".nav .notifactions .count").text(data.list.length);
			 }); */

		});
//		;(function($){
//			$.fn.totop=function(opt){
//				var scrolling=false;
//				return this.each(function(){
//					var $this=$(this);
//					$(window).scroll(function(){
//						if(!scrolling){
//							var sd=$(window).scrollTop();
//							if(sd>100){
//								$this.fadeIn();
//							}else{
//								$this.fadeOut();
//							}
//						}
//					});
//
//					$this.click(function(){
//						scrolling=true;
//						$('html, body').animate({
//							scrollTop : 0
//						}, 500,function(){
//							scrolling=false;
//							$this.fadeOut();
//						});
//					});
//				});
//			};
//		})(jQuery);
//
//		$("#backtotop").totop();


	});
</script>



<?php echo hook('footer_end');?>
</body>
</html>